package com.guapi.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("role_menu")
public class Auth implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("role_id")
    private Integer roleId;

    @TableField("menu_id")
    private Integer menuId;


    public Auth setRoleId(Integer roleId) {
        this.roleId = roleId;
        return this;
    }

    public Auth setMenuId(Integer menuId) {
        this.menuId = menuId;
        return this;
    }

    public Auth setId(Integer id){
        this.id=id;
        return this;
    }
}
